import { Module } from "@nestjs/common";
import { TypeOrmModule } from "@nestjs/typeorm";
import { SysCascaderItem } from "@/database/entity/SysCascaderItem";
import { SysCascaderType } from "@/database/entity/SysCascaderType";
import { SysDictItem } from "@/database/entity/SysDictItem";
import { SysDictType } from "@/database/entity/SysDictType";
import { CascaderItemController } from "./dict-cascader/csdr-item/csdr-item.controller";
import { CascaderItemService } from "./dict-cascader/csdr-item/csdr-item.service";
import { CascaderTypeController } from "./dict-cascader/csdr-type/csdr-type.controller";
import { CascaderTypeService } from "./dict-cascader/csdr-type/csdr-type.service";
import { DictItemController } from "./dict-data/dict-item/dict-item.controller";
import { DictItemService } from "./dict-data/dict-item/dict-item.service";
import { DictTypeController } from "./dict-data/dict-type/dict-type.controller";
import { DictTypeService } from "./dict-data/dict-type/dict-type.service";

@Module({
    imports: [TypeOrmModule.forFeature([SysDictType, SysDictItem, SysCascaderType, SysCascaderItem])],
    controllers: [DictTypeController, DictItemController, CascaderTypeController, CascaderItemController],
    providers: [DictTypeService, DictItemService, CascaderTypeService, CascaderItemService],
})
export class DictModule {}
